﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Batman.Jianbei.Forum.Migrations.ChatRoomDb
{
    public partial class _201907161 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MaskAlbumId",
                table: "TalkRoom");

            migrationBuilder.CreateTable(
                name: "ChatAction",
                columns: table => new
                {
                    Id = table.Column<string>(nullable: false),
                    Uid = table.Column<string>(nullable: true),
                    CreateAt = table.Column<DateTime>(nullable: false),
                    Action = table.Column<int>(nullable: false),
                    ActionName = table.Column<string>(nullable: true),
                    RoomId = table.Column<string>(nullable: true),
                    RelateUId = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ChatAction", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ChatAction");

            migrationBuilder.AddColumn<string>(
                name: "MaskAlbumId",
                table: "TalkRoom",
                nullable: true);
        }
    }
}
